<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateWorkExperiencesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('work_experiences', function (Blueprint $table) {
            $table->increments('id');
            $table->string('work_start_stop_time')->nullable()->comment('起止时间');
            $table->string('company_name')->nullable()->comment('公司名称');
            $table->string('department')->nullable()->comment('部门');
            $table->string('position')->nullable()->comment('职位');
            $table->string('compensation')->nullable()->comment('薪酬');
            $table->string('leaving_reason')->nullable()->comment('离职原因');
            $table->string('references_and_telephone_phone')->nullable()->commnet('证明人及电话');
            $table->integer('resume_id')->nullable()->comment('简历编号');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('work_experiences');
    }
}
